/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.aliyuncs.sofa.model.v20190815;

import com.aliyuncs.RpcAcsRequest;
import com.aliyuncs.http.MethodType;
import com.aliyuncs.sofa.Endpoint;

/**
 * @author auto create
 * @version 
 */
public class CreateDSTBizLogConfigRequest extends RpcAcsRequest<CreateDSTBizLogConfigResponse> {
	   

	private String logPath;

	private String logSample;

	private String app;

	private String logBeginRegex;

	private String checkCondition;

	private Boolean advSetValid;

	private String instanceId;

	private String name;
	public CreateDSTBizLogConfigRequest() {
		super("SOFA", "2019-08-15", "CreateDSTBizLogConfig", "ApplySidecarCert");
		setMethod(MethodType.POST);
		try {
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointMap").set(this, Endpoint.endpointMap);
			com.aliyuncs.AcsRequest.class.getDeclaredField("productEndpointRegional").set(this, Endpoint.endpointRegionalType);
		} catch (Exception e) {}
	}

	public String getLogPath() {
		return this.logPath;
	}

	public void setLogPath(String logPath) {
		this.logPath = logPath;
		if(logPath != null){
			putBodyParameter("LogPath", logPath);
		}
	}

	public String getLogSample() {
		return this.logSample;
	}

	public void setLogSample(String logSample) {
		this.logSample = logSample;
		if(logSample != null){
			putBodyParameter("LogSample", logSample);
		}
	}

	public String getApp() {
		return this.app;
	}

	public void setApp(String app) {
		this.app = app;
		if(app != null){
			putBodyParameter("App", app);
		}
	}

	public String getLogBeginRegex() {
		return this.logBeginRegex;
	}

	public void setLogBeginRegex(String logBeginRegex) {
		this.logBeginRegex = logBeginRegex;
		if(logBeginRegex != null){
			putBodyParameter("LogBeginRegex", logBeginRegex);
		}
	}

	public String getCheckCondition() {
		return this.checkCondition;
	}

	public void setCheckCondition(String checkCondition) {
		this.checkCondition = checkCondition;
		if(checkCondition != null){
			putBodyParameter("CheckCondition", checkCondition);
		}
	}

	public Boolean getAdvSetValid() {
		return this.advSetValid;
	}

	public void setAdvSetValid(Boolean advSetValid) {
		this.advSetValid = advSetValid;
		if(advSetValid != null){
			putBodyParameter("AdvSetValid", advSetValid.toString());
		}
	}

	public String getInstanceId() {
		return this.instanceId;
	}

	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
		if(instanceId != null){
			putBodyParameter("InstanceId", instanceId);
		}
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
		if(name != null){
			putBodyParameter("Name", name);
		}
	}

	@Override
	public Class<CreateDSTBizLogConfigResponse> getResponseClass() {
		return CreateDSTBizLogConfigResponse.class;
	}

}
